﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using Goldlight.Mvvm.Interfaces;

namespace Goldlight.SampleApplication
{
    internal static class Utility
    {
        [ImportMany(RequiredCreationPolicy = CreationPolicy.Shared)]
        private static IEnumerable<ITaskDialogService> _taskDialog { get; set; }

        /// <summary>
        /// Show the task dialog.
        /// </summary>
        public static ITaskDialogService TaskDialog
        {
            get { return _taskDialog.FirstOrDefault(); }
        }
    }
}
